<template>
  <div>
    <div class="my">
      <img :src="$pre+userInfo.avatarurl" alt="">
      <div>
      <p>{{userInfo.phone | filterTel}}</p>
      <p class="text">完善资料，让小U更懂你</p>
      </div>
      <span>每日签到</span>
    </div>
    <button @click="$router.push('/addressList')">地址管理</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      userInfo:{
        ...JSON.parse(localStorage.getItem("userInfo"))
      }
    }
  }
}
</script>

<style scoped>
  .my{
    background: #FF6B53;
    padding: 0.2rem 0 0 0.3rem;
    display: flex;
    justify-content: space-between;
  }
  .my img{
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
  }
  .my div{
    margin-top: 0.2rem;
  }
  .my div p{
    color: #fff;
    font-size: 0.3rem;
    line-height: 0.3rem;
    margin-bottom: 0.2rem;
  }
  .my div .text{
    border: 0.02rem solid #fff;
  }
  .my span{
    background: #FFD4CE;
    border-top-left-radius: 0.6rem;
    border-bottom-left-radius: 0.6rem;
    color:#FF6B53;
    padding:0.2rem;
    font-size: 0.3rem;
    height: 0.3rem;
    margin-top: 0.2rem;
  }
</style>